package com.sky.mapper;

import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 苏成博
 * @date 2023-02-13 10:46
 */
@Mapper
public interface OrderDetailMapper {

    void addOrderDetail(ArrayList<OrderDetail> ordersDetailList);
    @Select("select * from order_detail where order_id=#{orderId}")
    List<OrderDetail> findOrderDetailByOrderId(Long orderId);

}
